package cn.edu.scau.cmi.ema.service;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Spider;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface SpiderService {

	public Spider saveSpider(Spider spider);

	public Set<Spider> loadSpiders();

	public Set<Spider> loadReferenceSpiders(Set<Spider> spiders);

	public Set<Spider> loadSpidersByIdSet(Set<Integer> spidersId);

	public Map<String, ?> loadSpiderObjectReferencedSet(Spider spider);

	public Map<String, ?> loadSpiderClassReferencedSet(Spider spider);

	public void deleteSpider(Spider spider);

	public void deleteSpiders(Set<Integer> deleteSpidersId);

	public List<Spider> findAllSpiders(Integer startResult, Integer maxRows);

	public Spider findSpiderByPrimaryKey(Integer id);

	public Integer countSpiders();

	public Integer countSpiders(CmiPagination page);

	public Integer countSpidersByName(String queryName);

	public Integer countSpidersByDetachedCriteria(CmiPagination page);

}
